Order of Operations in Algebra
Introduction
Understanding how to correctly evaluate algebraic expressions is essential for all later work in mathematics.
A reliable way to remember the order of operations is PEMDAS:
- P: Parentheses
- E: Exponents
- M: Multiplication
- D: Division
- A: Addition
- S: Subtraction
The key idea: Always evaluate expressions in this order, even when variables are present.
Why Order Matters
Different orders of evaluation can produce different results.
For example:
- $3 + 2x$ means “multiply $2$ and $x$ first, then add $3$.”
- $(3 + 2)x$ means “add $3$ and $2$ first, then multiply by $x$.”
These are not the same expression.
Order of operations ensures that everyone interprets expressions the same way.
PEMDAS with Variables
When variables appear, PEMDAS works exactly as it does with numbers.
Parentheses
Evaluate anything inside parentheses first.
- Example: $(x + 4) - 2$
- Example: $3(2y - 1)$
Exponents
Apply exponents before multiplication or addition.
- Example: $x^2 + 3$
- Example: $(y + 1)^2$
Multiplication and Division
These occur left to right.
- Example: $4x \div 2$
- Example: $6y \cdot 3$
Addition and Subtraction
Also occur left to right.
Worked Examples
Example 1:
Evaluate $3 + 2x$ when $x = 5$.
- Multiply first: $2 \cdot 5 = 10$
- Then add: $3 + 10 = 13$
Example 2:
Evaluate $4(3 + y)$ when $y = 2$.
- Parentheses first: $3 + 2 = 5$
- Multiply: $4 \cdot 5 = 20$
Example 3:
Evaluate $2x^2 - 3$ when $x = 4$.
- Exponent first: $4^2 = 16$
- Multiply: $2 \cdot 16 = 32$
- Subtract: $32 - 3 = 29$
Common Mistakes to Avoid
- Forgetting parentheses:
$3x + 2$ is not the same as $3(x + 2)$. - Applying multiplication before exponents:
In $2x^2$, square $x$ first, then multiply. - Ignoring left‑to‑right rules:
In $12 \div 3 \cdot 2$, division happens first. - Dropping negative signs:
$-(x + 1)$ is not the same as $-x + 1$.
Exercises
- Evaluate $5 + 3x$ when $x = 4$.
- Evaluate $2(x + 7)$ when $x = 1$.
- Evaluate $4x^2 - 6$ when $x = 3$.
- Simplify $3(2y - 5)$.
- Evaluate $(x + 2)^2$ when $x = 5$.
- Simplify $12 \div 3 \cdot y$.
- Evaluate $2x - (3 - x)$ when $x = 2$.
- Simplify $4 - 2(x - 1)$.